package de.herberlin.pss.model;

import java.util.Properties;

public class Song extends BasicVO<Song.Key> {

	private static final long serialVersionUID = 1L;

	private Artist artist=null;
	
	public enum Key {
		iSongId, cSongTitle, iArtistId, iAlbumId, iTrackNr, 
		iTrackLength, iNrPlayed, cFileName, iDirId, iYear, 
		iGenreId, iBitRate, iSampleRate, iFileSize, iMediaType
	};

	public Song() {
	}

	public Song(Properties props) {
		super();
		setProperties(props);
	}

	@Override
	public String getTableName() {
		return "songTable";
	}

	public Artist getArtist() {
		return artist;
	}

	public void setArtist(Artist artist) {
		this.artist = artist;
	}

	@Override
	public String getPrimaryKeyName() {
		return Key.iSongId.name();
	}
	
}
